/**
 * 
 */
package br.com.rodolfo.timesheet.controller;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;

import br.com.rodolfo.timesheet.entity.Pessoa;

/**
 * @author rodolfo
 *
 */
@ManagedBean(name = "menuController")
@ViewScoped
public class MenuController extends BaseController implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8270675776999354829L;
	private Pessoa usuario;

	public MenuController() {
		FacesContext contexto = FacesContext.getCurrentInstance();
		this.setUsuario((Pessoa) contexto.getExternalContext().getSessionMap().get("usuario"));
	}

	public Pessoa getUsuario() {
		return usuario;
	}

	public void setUsuario(Pessoa usuario) {
		this.usuario = usuario;
	}

}
